![]() |
Hamlib
4.5~git
|
Event handling. More...
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <hamlib/rig.h>
#include "event.h"
#include "misc.h"
#include "cache.h"
#include "network.h"
Macros | |
#define | CHECK_RIG_ARG(r) (!(r) || !(r)->caps || !(r)->state.comm_state) |
Functions | |
int | rig_set_freq_callback (RIG *rig, freq_cb_t cb, rig_ptr_t arg) |
set the callback for freq events More... | |
int | rig_set_mode_callback (RIG *rig, mode_cb_t cb, rig_ptr_t arg) |
set the callback for mode events More... | |
int | rig_set_vfo_callback (RIG *rig, vfo_cb_t cb, rig_ptr_t arg) |
set the callback for vfo events More... | |
int | rig_set_ptt_callback (RIG *rig, ptt_cb_t cb, rig_ptr_t arg) |
set the callback for ptt events More... | |
int | rig_set_dcd_callback (RIG *rig, dcd_cb_t cb, rig_ptr_t arg) |
set the callback for dcd events More... | |
int | rig_set_pltune_callback (RIG *rig, pltune_cb_t cb, rig_ptr_t arg) |
set the callback for pipelined tuning module More... | |
int | rig_set_spectrum_callback (RIG *rig, spectrum_cb_t cb, rig_ptr_t arg) |
set the callback for spectrum line reception events More... | |
int | rig_set_trn (RIG *rig, int trn) |
control the transceive mode More... | |
int | rig_get_trn (RIG *rig, int *trn) |
get the current transceive mode More... | |
int | rig_fire_freq_event (RIG *rig, vfo_t vfo, freq_t freq) |
int | rig_fire_mode_event (RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) |
int | rig_fire_vfo_event (RIG *rig, vfo_t vfo) |
int | rig_fire_ptt_event (RIG *rig, vfo_t vfo, ptt_t ptt) |
int | rig_fire_dcd_event (RIG *rig, vfo_t vfo, dcd_t dcd) |
int | rig_fire_pltune_event (RIG *rig, vfo_t vfo, freq_t *freq, rmode_t *mode, pbwidth_t *width) |
int | rig_fire_spectrum_event (RIG *rig, struct rig_spectrum_line *line) |
Event handling.